package com.hospital.workstation.service;

import com.hospital.common.core.domain.R;
import com.hospital.workstation.domain.HisDocumentSearch;
import com.hospital.workstation.domain.vo.HisDocumentSearchVo;
import com.hospital.workstation.domain.bo.HisDocumentSearchBo;
import com.hospital.common.core.page.TableDataInfo;
import com.hospital.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 检验检查报告调阅Service接口
 *
 * @author whb
 * @date 2023-03-09
 */
public interface IHisDocumentSearchService {

    /**
     * 查询检验检查报告调阅
     */
    HisDocumentSearchVo queryById(Long id);

    /**
     * 查询检验检查报告调阅列表
     */
    TableDataInfo<HisDocumentSearchVo> queryPageList(HisDocumentSearchBo bo, PageQuery pageQuery);

    /**
     * 查询检验检查报告调阅列表
     */
    List<HisDocumentSearchVo> queryList(HisDocumentSearchBo bo);

    /**
     * 新增检验检查报告调阅
     */
    Boolean insertByBo(HisDocumentSearchBo bo);

    /**
     * 修改检验检查报告调阅
     */
    Boolean updateByBo(HisDocumentSearchBo bo);

    /**
     * 校验并批量删除检验检查报告调阅信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 查询报告
     *
     * @param documentId 文档ID
     * @return
     */
    R<HisDocumentSearchVo> queryReportByDocument(String documentId);
}
